package love.yuanmengrobot.wuziqi.UIzjj;

import love.yuanmengrobot.wuziqi.Util.GetPacksack;
import love.yuanmengrobot.wuziqi.Util.Packsack;

import javax.swing.*;
import java.awt.*;
/*
 * Created by JFormDesigner on Sun May 09 20:49:11 CST 2021
 */


/**
 * @author 1
 */
public class ShowPacksackFrom extends JFrame {
    public static void main(String[] args) {
        new ShowPacksackFrom();
    }
    public ShowPacksackFrom() {
        this.showPacksackPanel=new ShowPacksackPanel(new GetPacksack().getPacksack("15022222222"));
        initComponents();
    }

    public ShowPacksackFrom(Packsack packsack) {
        this.showPacksackPanel=new ShowPacksackPanel(packsack);
        initComponents();

    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents

        //======== this ========
        Container contentPane = getContentPane();
        contentPane.setLayout(null);

        contentPane.setPreferredSize(new Dimension(760, 500));
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents

        contentPane.add(showPacksackPanel);
        showPacksackPanel.setBounds(0, 0, 835, 500);

        showPacksackPanel.setVisible(true);
        setVisible(true);

    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    // JFormDesigner - End of variables declaration  //GEN-END:variables


    ShowPacksackPanel showPacksackPanel;

}
